<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理员注册</title>
<script type="text/javascript" src="../jquery/jquery-3.5.1.js"></script>
<link href="../bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet" type="text/css"> 
<script src="../bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="row">
  <div class="col-xs-12 col-md-8 col-md-offset-1">
  <div class="col-md-1">
  </div>
   <h1 >用户注册</h1>
   </div>
    
  <div class="col-xs-6 col-md-4"> 

  </div>
</div>
</nav>

<div class="row">
  <div class="col-md-3 col-md-offset-4 ">
<form id="userinfo" class="form-horizontal">
  <div class="form-group ">
    <label >Utel</label>
    <input type="text" class="form-control " id="utel" name="utel" placeholder="Utel">
  </div>
  <div class="form-group ">
    <label >Uname</label>
    <input type="text" class="form-control " id="uname" name="uname" placeholder="admName">
  </div>
  <div class="form-group ">
    <label >Upassword</label>
    <input type="password" class="form-control " id="upassword" name="upassword" placeholder="uPassword">
  </div >
   <div class="form-group ">
    <label >Area</label>
    <input type="text" class="form-control " id="diqu" name="diqu" placeholder="Area">
  </div >
  <div class="modal-footer">
        <button type="button" class="btn btn-primary input-lg col-lg-12" id="save">注册</button>
   </div> 
</form>

</div>
</div>
<script type="text/javascript">

$("#save").click(function () {
	
	$.ajax({
		url:"/base/inertNewUserSelective",
		type:"POST",
		data:$("#userinfo").serialize(),
		ansyc:false,
		success:function(result) {
			alert(result.code);
			if(result.code==100){
				alert(result.msg);
				
			}else if(result.code==200){
				alert("改手机号已被注册");
			}
		}
	});
	
})
</script>
</body>
</html>